home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Draw / Include / Constant.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.8 KB  |  89 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Constant.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef CONSTANT_H
  13. #define CONSTANT_H
  14.  
  15. // ----- OS Includes -----
  16.  
  17. #ifndef FWMNUITM_H
  18. #include "FWMnuItm.h"
  19. #endif
  20.  
  21. // ----- OpenDoc Includes -----
  22.  
  23. #ifndef _ODTYPES_
  24. #include <ODTypes.h>
  25. #endif
  26.  
  27. //========================================================================================
  28. //    Constants
  29. //========================================================================================
  30.  
  31. // ----- Commands -----
  32. const ODCommandID cMoveForward        = FW_kFirstUserCommandID;
  33. const ODCommandID cMoveToFront        = cMoveForward + 1;
  34. const ODCommandID cMoveBackward        = cMoveToFront + 1;
  35. const ODCommandID cMoveToBack         = cMoveBackward + 1;
  36. const ODCommandID cAlignToGrid        = cMoveToBack + 1;
  37. const ODCommandID cAlignObjects        = cAlignToGrid + 1;
  38. const ODCommandID cRotate             = cAlignObjects + 1;
  39. const ODCommandID cFlipH             = cRotate + 1;
  40. const ODCommandID cFlipV             = cFlipH + 1;
  41. const ODCommandID cGroup             = cFlipV + 1;
  42. const ODCommandID cUngroup             = cGroup + 1;
  43. const ODCommandID cLock             = cUngroup + 1;
  44. const ODCommandID cUnlock             = cLock + 1;
  45.  
  46. const ODCommandID cPen1             = cUnlock + 1;
  47. const ODCommandID cPen2             = cPen1+1;
  48. const ODCommandID cPen3             = cPen2+1;
  49. const ODCommandID cPen4             = cPen3+1;
  50. const ODCommandID cPen5             = cPen4+1;
  51.  
  52. const ODCommandID cGraphicsGrid        = cPen5 + 1;
  53. const ODCommandID cRulers            = cGraphicsGrid + 1;
  54. const ODCommandID cAutoGrid            = cRulers + 1;
  55. const ODCommandID cScaleSelection    = cAutoGrid + 1;
  56. const ODCommandID cRoundCorners        = cScaleSelection + 1;
  57.  
  58. const ODCommandID cInchUnit            = cRoundCorners + 1;
  59. const ODCommandID cCmUnit            = cInchUnit + 1;
  60. const ODCommandID cPixelUnit        = cCmUnit + 1;
  61. const ODCommandID cPicaUnit            = cPixelUnit + 1;
  62. const ODCommandID cDegreesUnit        = cPicaUnit + 1;
  63. const ODCommandID cRadiansUnit        = cDegreesUnit + 1;
  64.  
  65. const ODCommandID cHideShowTools     = cRadiansUnit + 1;
  66. const ODCommandID cHideShowPattern    = cHideShowTools+1;
  67. const ODCommandID cHideShowPalette    = cHideShowPattern+1;
  68.  
  69. // ----- Tool -----
  70. const unsigned short kSelectTool     = 1;
  71. const unsigned short kLine             = 2; 
  72. const unsigned short kRectangle     = 3; 
  73. const unsigned short kOval             = 4; 
  74. const unsigned short kRoundRect     = 5;
  75. const unsigned short kText             = 6;
  76.  
  77. // ----- Corner -----
  78. const short kInTopLeftCorner = 1;
  79. const short kInBottomRightCorner = kInTopLeftCorner + 1;
  80. const short kInTopRightCorner = kInBottomRightCorner + 1;
  81. const short kInBottomLeftCorner = kInTopRightCorner + 1;
  82.  
  83. // ----- Shape rendering -----
  84. const unsigned short kFrameOnly = 1;
  85. const unsigned short kFillOnly = 2;
  86. const unsigned short kFillFrame = 3;
  87.  
  88.  
  89. #endif